package com.cy.java.net;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class MainServer {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(999);
        System.out.println("Server start on 999 port ");
        while (true){
            Socket accept = serverSocket.accept();
            System.out.println("client come");
        }
    }
}
